﻿namespace EyeOpen.Warehouse.Data.EntityFramework
{
	using EyeOpen.Data;
	using EyeOpen.Data.EntityFramework;
	using EyeOpen.Warehouse.Domain;

	public class WarehouseUnitOfWork
		: EfUnitOfWork, IWarehouseUnitOfWork
	{
		public IRepository<Customer> CustomerRepository
		{
			get
			{
				return Repository<Customer>();
			}
		}

		public IRepository<Order> OrderRepository
		{
			get
			{
				return Repository<Order>();
			}
		}

		protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder)
		{
			modelBuilder.Entity<Customer>();

			modelBuilder.Entity<Order>();
		}
	}
}